<?php $user = $session->read('User'); ?>
 <p class="error">Installer file is
 	<?php 
 		if(file_exists(CONTROLLERS.'install_controller.php')){
			echo ' present : please remove <code>app/controllers/install_controller.php</code>.';
		}else{
			echo ' not present.';
		} ?>
 </p>
 
 <p>
 	<h3>Session info</h3>
 	<ul>
 		<li>Last login : <?php echo $user['last_login']; ?></li>
 		<li>Last ip : <?php echo $user['last_ip']; ?></li>
 		<li>Created : <?php echo $user['created']; ?></li>
 		<li>Modified : <?php echo $user['modified']; ?></li>
 	</ul>
 	<h3>Versions</h3>
 	<ul>
 		<li>Scriptaculous : <?php echo $version['scriptaculous']; ?></li>
 	</ul>
 	<h3>Last Comment</h3>
 	<ul>
 	<?php foreach($last_comments as $comment): ?>
 		<li>
 			<?php echo $html->link($comment['Comment']['author'], array('controller' => 'pages', 'action' => 'view', 'id' => $comment['Page']['slug'].'#comment_'.$comment['Comment']['id'])); ?>
 			<small>
 				<?php echo $html->link('edit', array('controller' => 'comments', 'action' => 'edit', 'id' => $comment['Comment']['id'])); ?>
 				<?php //echo $html2->link('delete', array('controller' => 'comments', 'action' => 'delete', 'id' => $comment['Comment']['id']), 'Are you sure to delete this comment ?'); ?>
 			</small>
 		</li>
 	<?php endforeach; ?>
 	</ul>
 </p>



